<!DOCTYPE html>
<html lang="en">
    <head>
        <title></title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <script src="./lib/vue-2.4.0.js"></script>
    </head>
    <body>
        <div id="app">
            <tt></tt>
            <spst></spst>
            <st></st>
        </div>
        <script type="x-template" id="tt2">
            <div> 这是script中创建的</div>
        </script>
        <script>
            Vue.component('spst',{
                template:'<div><span>点我</span><a href="#">链接</a></div>'
            });

            Vue.component('tt',{
                template:"#tt2"
            });
            var st={
                template:'<h2>私有组件模拟</h2>'
            }
            
            var vm = new Vue({
                el: '#app',
                data: {

                },
                methods:{

                },
                components:{
                    st
                }
            })
        </script>
    </body>
</html>